package com.xuzz.xrpc.registry;


import com.xuzz.xrpc.common.ConfigManager;
import com.xuzz.xrpc.common.loader.ExtensionLoader;

/**
 */
public class RegistrarFactory {

    public static IRegistry getRegistrar() {
        IRegistry extension = ExtensionLoader.getExtensionLoader(IRegistry.class).getExtension(ConfigManager.propertyConfig.getRegistryProtocol());
        return extension;
    }
}
